package work.linruchang.oauthresourceproject.config.oauth;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import work.linruchang.oauthresourceproject.bean.ThirdSystemInfo;

import java.io.Serializable;

/**
 * 认证成功后的授权信息（仅客户端可见不可对外暴露）
 *
 * @author LinRuChang
 * @version 1.0
 * @date 2022/08/21
 * @since 1.8
 **/
@Data
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class AllAuthInfo implements Serializable {

    private static final long serialVersionUID = -6428760980044083446L;

    AuthorizeInfo authorizeInfo;

    ThirdSystemInfo thirdSystemInfo;

    TokenInfo tokenInfo;


    /**
     * 服务端的用户ID
     */
    String userId;
}
